# # 导入pytest库
# import pytest
# import requests
#
# # 定义一个fixture，用于获取token
# @pytest.fixture
# def get_token():
#     # 发送获取token的接口请求
#     login_url = "http://192.168.3.182:9990/airservice-sso/sso/login"
#     login_data = {"account": "mike001",
#                   "password": "645b544257b819ad1fff479e7435034f",
#                   "loginType": 1,
#                   "isRemember": 1}
#     response = requests.post(url=login_url, json=login_data)
#     # 获取token
#     token = response.cookies.get("x-auth-token")
#     # 返回token
#     return token




# （1）、用户  wsf 的 token
# 请求头数据
#token
TOKEN=None
headers_data={"Content-Type":"application/json",
              "x-auth-token":"1h4wwOlPjg9y99GlF2U7wcZg0ZFUH8VtwG7BsblU4grGFkBVizYCXClw2V3pxoOq"}

#print(headers_data)


#（2）、定义路径基准，方便其他目录使用  E:\PycharmProjects\api_demo
import os
BASE_DIR=os.path.dirname(os.path.abspath(__file__))


#（3）、定义环境域名基准，
BASE_IP="http://192.168.3.182:9990/"
